package com.xianyu.ssoclient.validation;

import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;

/**
 * <p>个人请求校验实现.<br>
 *
 * @author 17070717.
 * @version 2017/11/3.
 */
public class PersonTicketValidator extends AbstractTicketValidator {

    public PersonTicketValidator(RestTemplate restTemplate) {
        this.restTemplate = restTemplate;
    }

    @Override
    protected Boolean parseResponse(ResponseEntity<Boolean> responseEntity) {
        return responseEntity.getBody();
    }

}
